fix: add authorAssociation to IssueFragment (GraphQL path)#2620
fix: add authorAssociation to IssueFragment (GraphQL path)#2620advancedresearcharray wants to merge 1 commit into
Conversation
|
@SamMorrowDrums — this addresses your review feedback on #2265:
Rebased on current Ready for re-review when you have a moment. |
0b6be85 to
9a21254
Compare
|
@SamMorrowDrums — rebased commits are clean (no co-author trailers). Verified locally with `script/test` on Go 1.25. This addresses your #2265 review:
CI workflows are still awaiting maintainer approval for this fork PR. Ready for re-review when you have a moment. |
e9c34fc to
205b993
Compare
|
Merge-ready check-in This PR looks ready for maintainer review/merge when you have a moment.
Happy to rebase or address any remaining feedback. Thanks for maintaining the project. |
205b993 to
825d663
Compare
|
Rebased onto current Verified locally: Changes:
Ready for re-review. |
5b0e435 to
d3a5059
Compare
Move authorAssociation to a top-level field on IssueFragment per the GitHub GraphQL schema. Populate MinimalIssue and MinimalPullRequest from the field and extend list_issues / pull_request tests. Fixes github#2250. Co-authored-by: Cursor <cursoragent@cursor.com>
d3a5059 to
f28a6cd
Compare
Addresses the CHANGES_REQUESTED review on #2265. The original PR placed
authorAssociationonActor.author, which does not exist in the GitHub GraphQL schema — it is a top-level field on theIssuenode.Changes
pkg/github/issues.goAuthorAssociation githubv4.StringtoIssueFragmentandLegacyIssueFragmentpkg/github/minimal_types.gofragmentToMinimalIssue()andlegacyFragmentToMinimalIssue()setAuthorAssociationfrom the top-level fieldauthor_associationtoMinimalPullRequestviaconvertToMinimalPullRequest()(Missing author_association field in list_issues and pull request responses #2250)pkg/github/issues_test.goauthorAssociationauthorAssociationpkg/github/pullrequests_test.goauthor_associationis populated inpull_request_readandlist_pull_requestsresponsesRebased on current
main.go test ./pkg/github/ -count=1passes.Fixes #2250. Supersedes #2265 (original author fork not writable).